﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string username = null;
            string password = null;
            string v = Request.HttpMethod;
            if (v == "POST")
            {
                username = Request.Params["TextBox1"];
                password = Request.Params["TextBox2"];

            }
            else if (v == "GET")
            {
                username = Request.QueryString["username"];
                password = Request.QueryString["password"];
            }


            Response.Write($"欢迎：{username} 密码是：{password}");
        }
    }
}